<template>
  <div>inject - {{ c.count }}</div>
</template>

<script setup>
import { inject } from "vue";

// inject有两个参数，要接受的key，和默认值(可以省略的)
const c = inject("count", 200);
</script>
